package com.cj;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author cc
 * @date 2025-05-11 22:00
 **/

public class Cat implements InitializingBean, DisposableBean {


    public Cat() {
        System.out.println("cat constructor");
    }
    /**
     * 初始化执行完成之后执行
     * @throws Exception
     */
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("after init");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("destroy cat");
    }
}
